﻿/**
 * Author: w景洋.
 * Time: 2016/9/5 0005
 */
angular.module('xwmmall', [
        'ui.router',
        'ngAnimate',
        'module.auth',
        'service.auth',
        'service.push',
        'module.lead',
        'module.temlpate',
        'module.shop',
        'module.new',
        'module.newlogin',
        'merchantapp.filter',
        'merch.service.merch',
        'service.receiptcashin.agentprofit',
        'module.buytool',
        'service.receipt.user',
        'service.shopmenu.user',
        'service.receipt.merchant'
   ])
    .run(
    [          '$rootScope', '$state', '$stateParams',
        function ($rootScope,   $state,   $stateParams) {
            $rootScope.$state = $state;
            $rootScope.$stateParams = $stateParams;
        }
    ]
)

    .config(
    [          '$stateProvider', '$urlRouterProvider','$locationProvider',
        function ($stateProvider,   $urlRouterProvider,$locationProvider) {
            //$urlRouterProvider.otherwise('/problem');
            //$urlRouterProvider.otherwise('/profit');
       /*   $urlRouterProvider.otherwise('/agent');*/
            //$urlRouterProvider.otherwise('/buytool');
        /*    $urlRouterProvider.otherwise('/newhome');*/
          /* $urlRouterProvider.otherwise('/withdrawcash');*/
           /*$urlRouterProvider.otherwise('/newlogin');*/
         /*  $urlRouterProvider.otherwise('/shopnext');*/
           $urlRouterProvider.otherwise('/shop');

     /*      $urlRouterProvider.otherwise('/newregister');*/
            //推广二维码（regist）
            //$urlRouterProvider.otherwise('/commercial');
            /*$urlRouterProvider.otherwise('/newshop');*/
          /*  $urlRouterProvider.otherwise('/agent');*/
            //提交资料(merchreg)
            ////$locationProvider.html5Mode(html5mode);
        }
    ]
);